angular.module('start.common.qunstion.ctrl', [])

.controller('QunstionCtrl', function($scope, $stateParams, $$ArticleService, $ionicLoading) {
    console.log("qunstionCtrl");
    $scope.qunstion = {};
    $$ArticleService.getArticleById($stateParams.qunstionId).success(function(data) {
        console.log(data);
        if (data.code == 200) {
            $scope.qunstion = data.result;
        } else {
            $ionicLoading.show({
                template: data.message,
                noBackdrop: true,
                duration: 1500
            });
        }
    });
});
